<template>
  <div>
    <div class="youlike">
      <!-- 智能专区 -->
      <div class="box" >
        <p class="title">智能专区</p>
        <div class="goodsbox">
          <div class="goods" v-for="item1 in 6 " :key="item1">
            <img src="https://img2.baidu.com/it/u=3374800863,1038353577&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=334" alt="">
            <div>
              <p>高性价比</p>
              <p>￥ 55</p>
            </div>
          </div>
        </div>
      </div>
      <!-- 特惠专区 -->
      <div class="box">
        <p class="title">特惠专区</p>
        <div class="goodsbox">
          <md-content class="md-scrollbar">
            <div class="preferential">
              <div v-for="items in 6 " :key="items">
                 <img src="https://img2.baidu.com/it/u=3374800863,1038353577&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=334" alt="">
                 <p>一折起</p>
                 <p>￥ 10</p>
              </div>
            </div>
          </md-content>
        </div>
      </div>
      <!-- 好物 -->
      <div class="box">
         <p class="title">好物专区</p>
         <div class="lunbo">
             <el-carousel :interval="3000" arrow="always"  class="carousel">
                <el-carousel-item v-for="item in 4" :key="item">
                   <img src="https://img0.baidu.com/it/u=2972251030,4111072434&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500" alt="">
                   <p>好东西{{item}}</p>
                   <p>￥ 22</p>
                </el-carousel-item>
              </el-carousel>
         </div>
        <div class="goodsbox">
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      ai: [],
      affordable: [],
      goods: []
    }
  },
  mounted () {

  }
}
</script>
<style lang="less" scoped>
.youlike{
  width: 90vw;
  height: 430px;
  background-color: white;
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  .box{
    font-size: 24px;
    width: 30vw;
    padding: 10px;
    border-right: 1px solid rgba(194, 194, 194, 0.279);
    .goodsbox{
      height: 370px;
      display: flex;
      flex-flow: row wrap;
      justify-content: space-between;
      .goods{
        width: 14vw;
        height: 100px;
        border-radius: 10px;
        border: 1px solid rgb(221, 221, 235);
        img{
          width: 80px;
          margin: 15px 10px;
        }
        div{
          margin-top: 15px;
          width: 90px;
          height: 70px;
          font-size: 12px;
          float: right;
          overflow: hidden;
        }
      }
      .md-content {
        width:29vw;
        margin-top: 0px;
        font-size: 12px;
        overflow: auto;
        max-height: 345px;
        .preferential{
          margin-bottom: 10px;
          width: 380px;
          height: 510px;
          display: flex;
          flex-flow: row wrap;
          justify-content: space-between;
          div{
            margin-top: 10px ;
            padding: 10px 25px ;
            height: 160px;
            width: 180px;
            border: 1px solid rgb(197, 200, 200);
            border-radius: 10px;
            img{
              // height:80px;
              width: 130px;
            }
            }
          }
        }
      }
    }
  .box:last-child{
    border: 0px;
  }
  .title{
    margin-top: 10px;
    margin-left: 20px;
    margin-bottom: 20px;
  }
  .lunbo{
    margin-top: 10px;
    .carousel{
      // background-color: antiquewhite ;
      height: 380px;
      img{
        position: relative;
        left: 50%;
        transform: translateX(-110px);
        margin: 10px auto;
        width: 220px;
        // height: 220px;
      }
      p{
        margin:  0 90px;
        margin-bottom: 10px;
      }
    }
  }
}

</style>
